<?php /* Smarty version 2.6.18, created on 2010-05-10 23:01:29
         compiled from default/comment.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'cacheless', 'default/comment.tpl', 2, false),array('modifier', 'truncate', 'default/comment.tpl', 4, false),array('modifier', 'date_format', 'default/comment.tpl', 18, false),)), $this); ?>
<?php $this->_cache_serials['C:/AppServ/www/xscms/template_c/\%%0B^0B2^0B2A5890%%comment.tpl.inc'] = '15537f316e9fbdfda619f649f24f2acb'; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/header.inc.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<?php if ($this->caching && !$this->_cache_including): echo '{nocache:15537f316e9fbdfda619f649f24f2acb#0}'; endif;$this->_tag_stack[] = array('cacheless', array()); $_block_repeat=true;smarty_block_cacheless($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
	<div class="comm">
		<div class="dt"><div><b>评论列表</b>（评论：<a style="color:red" href="index.php?a=article&aid=<?php echo $this->_tpl_vars['article']['id']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['article']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100) : smarty_modifier_truncate($_tmp, 100)); ?>
</a>）</div></div>	

		<div class="dd">
			<?php unset($this->_sections['con']);
$this->_sections['con']['name'] = 'con';
$this->_sections['con']['loop'] = is_array($_loop=$this->_tpl_vars['comment']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['con']['show'] = true;
$this->_sections['con']['max'] = $this->_sections['con']['loop'];
$this->_sections['con']['step'] = 1;
$this->_sections['con']['start'] = $this->_sections['con']['step'] > 0 ? 0 : $this->_sections['con']['loop']-1;
if ($this->_sections['con']['show']) {
    $this->_sections['con']['total'] = $this->_sections['con']['loop'];
    if ($this->_sections['con']['total'] == 0)
        $this->_sections['con']['show'] = false;
} else
    $this->_sections['con']['total'] = 0;
if ($this->_sections['con']['show']):

            for ($this->_sections['con']['index'] = $this->_sections['con']['start'], $this->_sections['con']['iteration'] = 1;
                 $this->_sections['con']['iteration'] <= $this->_sections['con']['total'];
                 $this->_sections['con']['index'] += $this->_sections['con']['step'], $this->_sections['con']['iteration']++):
$this->_sections['con']['rownum'] = $this->_sections['con']['iteration'];
$this->_sections['con']['index_prev'] = $this->_sections['con']['index'] - $this->_sections['con']['step'];
$this->_sections['con']['index_next'] = $this->_sections['con']['index'] + $this->_sections['con']['step'];
$this->_sections['con']['first']      = ($this->_sections['con']['iteration'] == 1);
$this->_sections['con']['last']       = ($this->_sections['con']['iteration'] == $this->_sections['con']['total']);
?>
			<div class="commtitle">
				<div class="pleft">&nbsp;<b class="titl"><?php echo $this->_tpl_vars['comment'][$this->_sections['con']['index']]['username']; ?>
</b> 
					<?php if ($this->_tpl_vars['comment'][$this->_sections['con']['index']]['cmt'] == 0): ?>
						<img alt="中立" src="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/images/cmt-neu.gif">  
					<?php elseif ($this->_tpl_vars['comment'][$this->_sections['con']['index']]['cmt'] == 1): ?>
						<img alt="好评" src="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/images/cmt-good.gif">
					<?php elseif ($this->_tpl_vars['comment'][$this->_sections['con']['index']]['cmt'] == -1): ?>
						<img alt="差评" src="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/images/cmt-bad.gif">
					<?php endif; ?>
				
					于 <?php echo ((is_array($_tmp=$this->_tpl_vars['comment'][$this->_sections['con']['index']]['postTime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%m-%d %H:%M")); ?>
 说到
				</div>
				<div class="pright"> 
				<a href="#" onclick="setCom(this, 1, <?php echo $this->_tpl_vars['comment'][$this->_sections['con']['index']]['id']; ?>
)">支持[<span class="red"><?php echo $this->_tpl_vars['comment'][$this->_sections['con']['index']]['support']; ?>
</span>]</a> &nbsp;&nbsp;&nbsp;
				<a href="#" onclick="setCom(this, 2, <?php echo $this->_tpl_vars['comment'][$this->_sections['con']['index']]['id']; ?>
)">反对[<span class="red"><?php echo $this->_tpl_vars['comment'][$this->_sections['con']['index']]['oppose']; ?>
</span>]</a> &nbsp;&nbsp;&nbsp;
				<a href="#" onclick="quote('hquote', <?php echo $this->_tpl_vars['comment'][$this->_sections['con']['index']]['id']; ?>
); return false;">引用</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<?php if ($this->_tpl_vars['dlht']): ?>
					【<a href="index.php?a=delcomment&cid=<?php echo $this->_tpl_vars['comment'][$this->_sections['con']['index']]['id']; ?>
&aid=<?php echo $this->_tpl_vars['article']['id']; ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
">删除</a>】
				<?php endif; ?>
				</div>
			</div>

			<div class="commtent">
				<?php echo $this->_tpl_vars['comment'][$this->_sections['con']['index']]['content']; ?>

			</div>
			<?php endfor; else: ?>
				目前还没有对文章 <b><?php echo ((is_array($_tmp=$this->_tpl_vars['article']['title'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100) : smarty_modifier_truncate($_tmp, 100)); ?>
</b> 的评论！
			<?php endif; ?>
			<div class="page">
				<?php echo $this->_tpl_vars['fpage']; ?>
	
			</div>
		</div>
	</div>
	<div class="nav"> </div>
	
	<div class="comm">
		<a name="comment"></a>
			<?php if ($_SESSION['isLoginH']): ?>
				<?php if ($this->_tpl_vars['fbpl']): ?>
					<form action="index.php?a=comment&action=com" method="post">
					&nbsp;请自觉遵守互联网相关的政策法规，严禁发布色情、暴力、反动的言论。
					<input type="hidden" name="quote" id="hquote" value="">
					<input type="hidden" name="aid" value="<?php echo $this->_tpl_vars['article']['id']; ?>
">
					<input type="hidden" name="uid" value="<?php echo $_SESSION['uid']; ?>
">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;评价:
					<input type="radio" name="cmt" checked value="0"><img src="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/images/cmt-neu.gif" border=0>中
					<input type="radio" name="cmt"  value="1"><img src="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/images/cmt-good.gif" border=0>好评			
					<input type="radio" name="cmt"  value="-1"><img src="style/<?php echo $this->_tpl_vars['stylePath']; ?>
/images/cmt-bad.gif" border=0>差评
					<?php echo $this->_tpl_vars['FCK']; ?>

					<div class="subo"> 
						<input type="submit" class="button" name="sub" style="height:20px" value="发表评论">
						&nbsp;&nbsp;网友评论仅供网友表达个人看法，并不表明本站同意其观点或证实其描述。		
					</div>	
					</form>
				<?php else: ?>
					管理员屏蔽了你的评论权限....
				<?php endif; ?>
			<?php else: ?>
				登录后才能发表评论......
			<?php endif; ?>
		
		<div class="nav"> </div>
	</div>
	<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_cacheless($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); if ($this->caching && !$this->_cache_including): echo '{/nocache:15537f316e9fbdfda619f649f24f2acb#0}'; endif;?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/footer.inc.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>